<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html"/>
    <xsl:template match="/">
        <html>
            <body>
                <xsl:for-each select="//DDD"> 
                    <DIV style="color:green">
                        <xsl:value-of select="name()"/>
                        <xsl:text> id=</xsl:text> 
                        <xsl:value-of select="@id"/> 
                    </DIV> 
                </xsl:for-each> 
            </body>
        </html>
    </xsl:template>

</xsl:stylesheet>
